import Vue from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue'
import router from './router'
import store from './store'
import 'ant-design-vue/dist/antd.css'
import vueBus from "./api/bus.js";
import { VueAxios } from "./api/utils/request.js";
import { setData, data } from "./api/storage.js";
import "./components/global.less"
import echarts from "echarts";
import myCharts from "./api/utils/mycharts";

Vue.prototype.$echarts = echarts;
// user
Vue.use(Antd,VueAxios);
Vue.use(myCharts);

Vue.config.productionTip = false

//本地存储设置
Vue.prototype.setData = setData;
Vue.prototype.data = data;
vueBus.$on("setData", data => (Vue.prototype.data = data));

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
